import { http, download } from '../../apis/request'
// this.prototype.$http = http;
const request = http
let advertisement = {
    //获取广告列表
    getAdvertisement(state, pageNumber, pageSize){
      return request("/other/getAdvertisement", {
        state,pageNumber,pageSize,
      })
    },
    //增加广告
    insertAdvertisement(data){
      return request("/other/insertAdvertisement",data)
    },
    //查询广告信息
    showAdvertisement(data){
      return request("/other/showAdvertisement",data)
    },
    //修改广告状态
    updateAdvertisementState(data){
      return request("/other/updateAdvertisementState",data)
    }
}
export default advertisement
